import request from '@/utils/request';
import { stringify } from 'qs';

const api = '/api/Receivable';

export async function get(params) {
  const url = `${api}/relInv?${stringify(params)}`;
  return request(url);
}

export async function receiveGroup(params) {
  const url = `${api}/receiveGroup?${stringify(params)}`;
  return request(url);
}

export async function relationerDetails(params) {
  const url = `${api}/relationerDetails?${stringify(params)}`;
  return request(url);
}

export async function getReceiptByBillId(id) {
  const url = `${api}/getReceiptByBillId?billId=${id}`;
  return request(url);
}

export async function changeTiDanState(params) {
  return request(`${api}/changeTiDanState`, {
    method: 'POST',
    body: params,
  });
}


export async function receipt(params) {
  return request(`${api}/Receipt`, {
    method: 'POST',
    body: params,
  });
}



